切换主题
Docker-Compose 部署Nginx
字数
40 字
阅读时间
1 分钟
下载国密Nginx对应版本:
https://www.gmssl.cn/gmssl/index.jsp
yaml
services:
gmssl_nginx:
image: centos:centos7
container_name: gmssl_nginx
volumes:
- ./nginx:/usr/local/nginx
ports:
- "80:80"
- "443:443"
command: ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]
environment:
- "TZ=Asia/Shanghai"